<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>
<link href="<%=basePath %>admin/images/skin.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>admin/css/riqi.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath %>admin/js/riqi1.js" type="text/javascript"></script>
<script language="javascript">  
		function fsubmit(obj){
		  var pattern =/^[a-zA-Z0-9_\-]{1,}@[a-zA-Z0-9_\-]{1,}\.[a-zA-Z0-9_\-.]{1,}$/;
		  if (obj.realname.value==""){alert("请填写会员的真实姓名！");obj.realname.focus();return false;}
          if (obj.height.value==""){alert("请填会员的身高！");obj.height.focus();return false;}
          if (isNaN(obj.height.value)){alert("会员的的身高不是数字！");obj.height.focus();return false;}
          if (!pattern.exec(obj.remark1.value)) {alert("请填写正确的邮箱地址!");obj.remark1.focus();return false;}           
		  obj.submit();
		}
</script>
<body>
    <c:if test="${!empty msg}">
     <script type="text/javascript">
         alert("${msg}");  
     </script>
     <c:remove var="msg" scope="session"/>
   </c:if>
   <script src="<%=basePath %>admin/js/riqi.js" type="text/javascript"></script>
	<form method="POST" id="form1" name="form1" action="member!addMember.action">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" height="29" valign="top"
					background="<%=basePath %>admin/images/mail_leftbg.gif">
					<img src="<%=basePath %>admin/images/left-top-right.gif" width="17" height="29" />
				</td>
				<td width="935" height="29" valign="top"
					background="<%=basePath %>admin/images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									会员信息录入
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top"
					background="<%=basePath %>admin//images/mail_rightbg.gif">
					<img src="<%=basePath %>admin/images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td height="71" valign="middle"
					background="<%=basePath %>admin/images/mail_leftbg.gif">&nbsp;
					
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="100%" height="138" border="0" cellpadding="0"
						cellspacing="0">
						
						<tr>
							<td valign="top">
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td class="left_txt">
											当前位置：会员信息录入
										</td>
									</tr>
									<tr>
										<td height="20">
											<table width="100%" height="1" border="0" cellpadding="0"
												cellspacing="0" bgcolor="#CCCCCC">
												<tr>
													<td></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="55" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="10%" height="55" valign="middle">
														<img src="<%=basePath %>admin/images/madd.png" width="54" height="55" />
													</td>
													<td width="90%" valign="top">
														<span class="left_txt2">在这里，您可以根据您的网站要求，修改设置网站的</span><span
															class="left_txt3">会员信息录入</span><span class="left_txt2">！</span>
														<br />
														<span class="left_txt2">包括</span><span class="left_txt3">网站名称，网址，网站备案号，联系方式，网站公告，关键词，风格</span><span
															class="left_txt2">等以及网站</span><span class="left_txt3">会员及等级积分设置</span><span
															class="left_txt2">。 </span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="31" border="0" cellpadding="0"
												cellspacing="0" class="nowtable">
												<tr>
													<td class="left_bt2">
														&nbsp;&nbsp;&nbsp;&nbsp;会员基本信息录入
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														会员姓名：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input name="member.realname" type="text" id="realname" size="15"/>													</td>
													<td width="25%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">爱&nbsp;&nbsp;&nbsp;&nbsp;
														&nbsp;&nbsp;&nbsp;好：</td>
													<td width="3%" bgcolor="#f2f2f2"><input type="text" name="member.likes" size="20" /></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2" class="left_txt2">
													  &nbsp;
													</td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														会员昵称：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input name="member.nickname" type="text" id="title" size="15"/>													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">登录密码：</td>
													<td width="3%" bgcolor="#f2f2f2"><input name="member.upass" size="20"  type="text" id="member.upass" size="15"/></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>	
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														会员姓别：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input type="radio" name="member.sex" value="男" checked="checked"/><font size="2">男</font>
														<input type="radio" name="member.sex" value="女" /><font size="2">女</font>													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">密保问题：</td>
													<td width="3%" bgcolor="#f2f2f2"><input name="member.question" type="text" size="20"  id="question" size="15"/></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>	
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														出生年月：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input type="text" name="member.birthday" onClick="showcalendar(event,this);" 
														onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" readonly="readonly"
														size="20" />													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">密保答案：</td>
													<td width="3%" bgcolor="#f2f2f2"><input name="member.answer" type="text" size="20"  id="answer" size="15"/></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>			
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														身份证号：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input name="member.cardid" type="text" id="cardid" size="20" />													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">入会时间： </td>
												  <td width="3%" bgcolor="#f2f2f2"><input name="member.stime" size="20"  onClick="showcalendar(event,this);" 
														onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" readonly="readonly" type="text" id="stime" size="20" /></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>	
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														联系电话：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input type="text" name="member.linktel" size="20" />													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">到期时间：</td>
												  <td width="3%" bgcolor="#f2f2f2"><input name="member.etime" size="20"  onClick="showcalendar(event,this);" 
														onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" readonly="readonly" type="text" id="etime" size="20" /></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														入学时间：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input name="member.entime" onClick="showcalendar(event,this);" 
														onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" readonly="readonly" type="text" id="entime" size="20" />													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">报名限制开始时间：</td>
												  <td width="3%" bgcolor="#f2f2f2"><input name="member.slogintime" onClick="showcalendar(event,this);" 
														onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" readonly="readonly" type="text" id="slogintime " size="20" /></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														学&nbsp;&nbsp;&nbsp;&nbsp;
														&nbsp;&nbsp;&nbsp;校：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<select name="member.sid" style="width: 150px;text-align: center;">													
														  <c:if test="${!empty schools}">
															<c:forEach items="${schools}" var="school">					
																<option value="${school.sid}">${school.sallname }</option>
															</c:forEach>
											              </c:if>
														</select>													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">报名限制结束时间： </td>
													<td width="3%" bgcolor="#f2f2f2"><input name="member.elogintime" onClick="showcalendar(event,this);" 
														onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" readonly="readonly" type="text" id="elogintime" size="20" /></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>				
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														籍&nbsp;&nbsp;&nbsp;&nbsp;
														&nbsp;&nbsp;&nbsp;贯：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input type="text" name="member.nation" size="20" />													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">是否有健康证</td>
													<td width="3%" bgcolor="#f2f2f2">
													  <select name="member.healthly" style="width: 50px;text-align: center;">
														 <option value="有">有</option>
														 <option value="无">无</option>
														</select>													</td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>			
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
														所学专业：													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
														<input type="text" name="member.zhuye" size="20" />													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">密保邮箱：</td>
													<td width="3%" bgcolor="#f2f2f2">
													 <input type="text" name="member.remark1" id="remark1" size="20" />	
													</td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>		
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">身&nbsp;&nbsp;&nbsp;&nbsp;
														&nbsp;&nbsp;&nbsp;高：</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2">
													  <input type="text" name="member.height" id="height" size="12" />
													  <font color="red">单位：CM</font>
													</td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">信息备注：</td>
													<td width="3%" bgcolor="#f2f2f2" rowspan="2"><textarea name="member.remark2" rows="4" cols="29"></textarea></td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">&nbsp;												  </td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>		
												<tr>
													<td height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">特&nbsp;&nbsp;&nbsp;&nbsp;
														&nbsp;&nbsp;&nbsp;长：</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  </td>
													<td width="30%" height="28" bgcolor="#f2f2f2"><input type="text" name="member.techang" size="20" /></td>
													<td width="15%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
													 &nbsp;
													</td>
													<td width="3%" bgcolor="#f2f2f2">&nbsp;												  
													 &nbsp;	
													</td>
													<td width="20%" height="28" align="right" bgcolor="#f2f2f2"
														class="left_txt2">
													 &nbsp;
													</td>
													<td bgcolor="#f2f2f2">&nbsp;												  </td>
												</tr>		
												<tr height="28">
													<td height="17" colspan="2" align="right">
														<input type="button" onmousedown="return fsubmit(form1);" value="提交信息" />													</td>
													
													<td height="17" colspan="5" align="center">
														<input type="reset" value="信息重填" />													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
				<td background="<%=basePath %>admin/images/mail_rightbg.gif">&nbsp;
					
				</td>
			</tr>
			<tr>
				<td valign="middle" background="<%=basePath %>admin/images/mail_leftbg.gif">
					<img src="<%=basePath %>admin/images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td height="17" valign="top"
					background="<%=basePath %>admin/images/buttom_bgs.gif">
					<img src="<%=basePath %>admin/images/buttom_bgs.gif" width="17" height="17" />
				</td>
				<td background="<%=basePath %>admin/images/mail_rightbg.gif">
					<img src="<%=basePath %>admin/images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>
	</form>
</body>
